package com.jcf.springboot.controller.business;

import com.jcf.springboot.service.RabbitmqService;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ${chaofan.ji}
 * @since 2025/4/20
 */
@RestController
public class RabbitController {

  @Autowired
  private RabbitTemplate rabbitTemplate;
  @Autowired
  private RabbitmqService rabbitmqService;

   @RequestMapping("/send")
  public void sendMessage(){
    rabbitmqService.sendMessage();
   }
}
